/*************************************************
 ** preload为预加载模块，该文件将会在程序启动时加载 **
 *************************************************/

const { logger } = require('ee-core/log');
// const PythonService = require('../service/cross');
const GoService = require('../service/cross');


// function preload() {
//   logger.info('[preload] load 1');
//   const pythonService = new PythonService();
//   pythonService.createPythonServer();
// }

async function preload() {
  logger.info('[preload] load 1');
  const goService = new GoService();
  await goService.createGoServer();
}


/**
* 预加载模块入口
*/
module.exports = {
  preload
}